package cn.sytton.taffe.file.service.impl;

import cn.sytton.taffe.file.service.AbstractFileService;
import cn.sytton.taffe.file.service.IFileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 临时文件处理服务, 定期清除
 *
 * @author skyrock
 */
@Slf4j
@Component
public class FileTempService extends AbstractFileService implements IFileService {

    private final static String BUCKET_NAME = "temp";

    @Override
    public void afterPropertiesSet() throws Exception {
        super.setBucketName(BUCKET_NAME);
        super.makePublicBucket(); //创建public存储桶
        super.afterPropertiesSet();
    }
}
